import request from '../utils/request'

export interface Role{
    RoleName: string;
    CreateTime: string;
    UpdateTime: string;
    Roleid: number;
}

export const List = (query:{}) => {
    return request({
        url: '/Role/List',
        method: 'post',
        data:query
    });
};  
export const Update = (data:Role) => {
    return request({
        url: '/Role/Update',
        method: 'post',
        data:data
    });
};
export const Add = (data:Role) => {
    return request({
        url: '/Role/Add',
        method: 'post',
        data:data
    });
};

export const Deleteuser = (id:number) => {
    return request({
        url: '/Role/Del?id='+id,
        method: 'post'
    });
};
